let yesOrNoDic = [
	{label:'否',value:0,type:'danger'},
	{label:'是',value:1,type:'success'},
]
const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{
			label: '标题',
			prop: 'tableTitle',
		},
		{
			label: '简介',
			prop: 'tableDescribe',
		},
		
		{
			label: '是否禁用',
			prop:'tableDisable',
			custome: 'tag',
			dicData:yesOrNoDic
		},
		{
			label: '排序',
			prop: 'sortBy',
		},
		{
			label: '是否计算得分',
			prop: 'tableDisable',
			custome: 'tag',
			dicData:yesOrNoDic
			
		},
		{
			label: '添加时间',
			prop: 'createTime',
		},
		{
			label: '操作',
			prop: 'menu',
			width: 300,
			fixed: 'right',
		},
	],
}
export const formConfig = {
	inline: false,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label:"类型",
			prop:"assessType",
			type:'select',
			dicData:[{
				label:"老年人能力评估",
				value:"1"
			},
			{
				label:"机构等级评估",
				value:"2"
			}
		]
		},
        {label:'标题',prop:'tableTitle',span:8},

        {
			label:'是否禁用',prop:'tableDisable',
			type:'radio',
			dicData:yesOrNoDic,
			span:8
		},
        {
			label:'是否计算得分',prop:'scoreEnable',
			type:'radio',
			dicData:yesOrNoDic,
			span:8
		},
        {label:'排序',prop:'sortBy',span:8},
        {label:'简介',prop:'tableDescribe',type:'textarea',span:8},
    ]}
const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label: '标题',
			prop: 'tableTitle',
			type: 'input',
			span: 8,
		},
	],
}

export const baseConfig: any = {
	pageName: '动态大类',
	addLabel: '添加',
	dictcodes: [],
	rowKey: 'id',
	tipLabel: 'tableTitle',
	api: {
		index: 'view_bscAssessTableInfo_page',
		detail:'view_bscAssessTableInfo_view',
		add: 'view_bscAssessTableInfo_add',
		edit: 'view_bscAssessTableInfo_edit',
		delete: 'view_bscAssessTableInfo_del',
	},
	auth: {
		index: 'view_bscAssessTableInfo_page',
		detail:'view_bscAssessTableInfo_view',
		add: 'view_bscAssessTableInfo_add',
		edit: 'view_bscAssessTableInfo_edit',
		delete: 'view_bscAssessTableInfo_del',
	},

	menuBtn: [
		{
			icon: 'editor',
			label: '编辑',
			type: 'info',
			operate: 'edit',
			auth: 'view_bscAssessTableInfo_edit',
			text: true,
			show: true,
		},
		{
			icon: 'delete',
			label: '删除',
			type: 'danger',
			operate: 'delete',
			auth: 'view_bscAssessTableInfo_del',
			text: true,
			show: true,
		},
	],
    formConfig,
	dialogConfig: {
		width: '65%',
	},
	searchConfig,
	tableConfig
}
